import { httpInstance } from '@/utils/request'

interface FetchProjectDetailAPIResData {
  code: number
  data: Project
  msg: string
  time: string
}

export function fetchProjectDetailAPI(projectId: string, token: string,
) {
  return httpInstance.get<FetchProjectDetailAPIResData>(
    'api/Project_extend/projectInfo',
    { params: { id: projectId }, headers: { token } },
  )
}
